package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JobPlanEnclosureWarnMapper;
import com.ruoyi.system.domain.JobPlanEnclosureWarn;
import com.ruoyi.system.service.IJobPlanEnclosureWarnService;

/**
 * 作业围栏报警Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-20
 */
@Service
public class JobPlanEnclosureWarnServiceImpl implements IJobPlanEnclosureWarnService 
{
    @Autowired
    private JobPlanEnclosureWarnMapper jobPlanEnclosureWarnMapper;

    /**
     * 查询作业围栏报警
     * 
     * @param id 作业围栏报警主键
     * @return 作业围栏报警
     */
    @Override
    public JobPlanEnclosureWarn selectJobPlanEnclosureWarnById(Long id)
    {
        return jobPlanEnclosureWarnMapper.selectJobPlanEnclosureWarnById(id);
    }

    /**
     * 查询作业围栏报警列表
     * 
     * @param jobPlanEnclosureWarn 作业围栏报警
     * @return 作业围栏报警
     */
    @Override
    public List<JobPlanEnclosureWarn> selectJobPlanEnclosureWarnList(JobPlanEnclosureWarn jobPlanEnclosureWarn)
    {
        return jobPlanEnclosureWarnMapper.selectJobPlanEnclosureWarnList(jobPlanEnclosureWarn);
    }

    /**
     * 新增作业围栏报警
     * 
     * @param jobPlanEnclosureWarn 作业围栏报警
     * @return 结果
     */
    @Override
    public int insertJobPlanEnclosureWarn(JobPlanEnclosureWarn jobPlanEnclosureWarn)
    {
        return jobPlanEnclosureWarnMapper.insertJobPlanEnclosureWarn(jobPlanEnclosureWarn);
    }

    /**
     * 修改作业围栏报警
     * 
     * @param jobPlanEnclosureWarn 作业围栏报警
     * @return 结果
     */
    @Override
    public int updateJobPlanEnclosureWarn(JobPlanEnclosureWarn jobPlanEnclosureWarn)
    {
        return jobPlanEnclosureWarnMapper.updateJobPlanEnclosureWarn(jobPlanEnclosureWarn);
    }

    /**
     * 批量删除作业围栏报警
     * 
     * @param ids 需要删除的作业围栏报警主键
     * @return 结果
     */
    @Override
    public int deleteJobPlanEnclosureWarnByIds(Long[] ids)
    {
        return jobPlanEnclosureWarnMapper.deleteJobPlanEnclosureWarnByIds(ids);
    }

    /**
     * 删除作业围栏报警信息
     * 
     * @param id 作业围栏报警主键
     * @return 结果
     */
    @Override
    public int deleteJobPlanEnclosureWarnById(Long id)
    {
        return jobPlanEnclosureWarnMapper.deleteJobPlanEnclosureWarnById(id);
    }
}
